package it.text;

public class sevenText {
    public static void main(String[] args) {
        int[] arr=new int[100];
//        arr=arr1();
        int i=0,n=0;
        System.out.println("逢7必过的数据:");
        for (i = 1; i <= 100; i++) {
            if(i%7==0 || i/10==7 || i%10==7) {
                System.out.println(i);
                n++;
            }
        }
    }

    public static int arr1(){
        int i=0,n=0;
        for (i = 0; i <= 100; i++) {
            if(i%7==0 || i/10==7 || i%10==7) {
                System.out.println(i);
                n++;
            }
        }


        int[] arr1 = new int[n];
        return arr1[n-1];
    }

}
